package com.vinjune.distributed.redislock;

import redis.clients.jedis.Jedis;

import java.util.concurrent.TimeUnit;

public interface DisLock {

    boolean tryLock(Jedis jedis);

    boolean tryLock(long time, TimeUnit unit, Jedis jedis) throws InterruptedException;

    void unlock(Jedis jedis);
}